DailyEvaluationEntryDBSafe

@Serializable
data class DailyEvaluationEntryDBSafe(val selectedEmotions: List<String> = listOf(), val emotionIntensities: List<Float> = listOf(0f, 0f, 0f), val emotionsMap: Map<String, Float> = mapOf(), val stressLevel: String = "default_initial", val strongestEmotionFirst: String? = null, val strongestEmotionSecond: Float = 0.0f, val dateCompleted: Date? = null)

Represents a daily mood evaluation entry that is stored safely in the database. This includes the selected emotions, their intensities, a map of emotions to their values, the stress level, the strongest emotions (first and second), and the date the entry was completed.

Constructors

Link copied to clipboard
constructor(selectedEmotions: List<String> = listOf(), emotionIntensities: List<Float> = listOf(0f, 0f, 0f), emotionsMap: Map<String, Float> = mapOf(), stressLevel: String = "default_initial", strongestEmotionFirst: String? = null, strongestEmotionSecond: Float = 0.0f, dateCompleted: Date? = null)

Properties

Link copied to clipboard
@Serializable(with = DateSerializer::class)
val dateCompleted: Date? = null

The date when the mood evaluation was completed.

Link copied to clipboard

The intensities of the selected emotions.

Link copied to clipboard

A map containing the emotions and their respective intensities.

Link copied to clipboard

The list of emotions selected by the user.

Link copied to clipboard

The user's reported stress level.

Link copied to clipboard

The first strongest emotion (stored in Firestore).

Link copied to clipboard

The intensity of the second strongest emotion.

Functions